﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rung.EBook.DocFormater.Umd
{
    public static class UmdFormater
    {
        public static UmdBookBM CreateNewUMDBook()
        {
            return new UmdBookBM();
        }

        public static UmdBookBM ReadUMDBook(string filepath)
        {
            UmdReader reader = new UmdReader();
            return reader.Read(filepath);
        }

        public static void WriteUMDBook(UmdBookBM book)
        {
            UmdWriter writer = new UmdWriter(book);
            writer.Write();
        }

    }
}
